function Build(build_json){
  	var json = build_json;
  	
  	this.getDate = function(){
  	  return json.id.split("_")[0];
  	}
  	
  	this.getSubmitter = function(){
  	  if(json.changeSet.items.length != 0){
  	  	return json.changeSet.items[0].user;
  	  }	
	  return "unknown"
  	}

	this.getStatus = function(){
		if(json.building == true)
			return "building";
		return json.result.toLowerCase();
	}
	
	this.getJobUrl = function(){
		jobUrl = "http://";
		split = json.url.split("/");
		for(i=2; i<split.length-2; i++){
			jobUrl+= split[i]+"/";
		}
		return jobUrl;
	}
}